package com.diary.server.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.diary.server.entity.DiaryList;
import com.diary.server.vo.CalendarVO;

import java.time.LocalDate;
import java.util.List;

public interface DiaryService extends IService<DiaryList> {
    List<DiaryList> getByDate(String dateStr, Long userId);

    List<CalendarVO> getByMonth(String month);

    /**
     * 获取指定日期范围内的日记列表
     * @param userId 用户ID
     * @param startDate 开始日期
     * @param endDate 结束日期
     * @return 日记列表
     */
    List<DiaryList> getWeeklyDiaries(Long userId, LocalDate startDate, LocalDate endDate);

}
